package com.vegetable.modules.entity.allocation.po;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * <p>
 * 分配回款明细PO
 * </p>
 *
 * @author Qoder
 * @since 2025-10-08
 */
@Data
@ApiModel(value="AllocationCollectionDetailPO对象", description="分配回款明细PO")
public class AllocationCollectionDetailPO {

    @ApiModelProperty(value = "主键ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @ApiModelProperty(value = "主表ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long mainId;

    @ApiModelProperty(value = "销售出库单ID")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long salesOutId;

    @ApiModelProperty(value = "销售出库单号")
    private String salesOutDocNo;

    @ApiModelProperty(value = "分配金额")
    private BigDecimal allocatedAmount;

    @ApiModelProperty(value = "提成-对外")
    private BigDecimal commissionOut;

    @ApiModelProperty(value = "扣款金额")
    private BigDecimal deductionAmount;

    @ApiModelProperty(value = "扣款原因")
    private String deductionReason;

    @ApiModelProperty(value = "备注")
    private String remark;
}